import axios from '@/utils/request'

export const login = data => {
  return axios({
    method: 'post',
    url: '/sys/login',
    data
  })
}
// 获取用户基本信息
export const getUserInfo = () => {
  return axios({
    method: 'post',
    url: '/sys/profile'
  })
}
// 用id获取用户详细信息
export const getDetailInfoById = (id) => {
  return axios({
    url: '/sys/user/' + id
  })
}
